<template>
    <el-container>
        <!-- <el-aside>
        </el-aside> -->
        <transition name="el-fade-in-linear">
            <LeftChartList v-show="routeName === 'Template'" />
        </transition>
        <Menus />
        <el-container>
            <el-header>
                <Header />
            </el-header>
            <router-view />
        </el-container>
    </el-container>
</template>
<script>
import Header from './components/header.vue';
import Menus from './components/menus.vue';
import LeftChartList from './components/LeftChartList/leftChartList';

export default {
    components: {
        Header,
        Menus,
        LeftChartList,
    },
    computed: {
        routeName() {
            return this.$route.name;
        },
    },
};
</script>
<style lang="scss">
body,
html,
#app {
    height: 100%;
    width: 100%;
    margin: 0;
}
.main-box {
    width: calc(100% - 20px);
    height: 100%;
    margin: 0 10px;
}
.el-header,
.el-footer {
    background-color: #b3c0d1;
    color: #333;
    text-align: center;
    line-height: 60px;
    padding: 0 !important;
}

.el-aside {
    background-color: #d3dce6;
    color: #333;
    text-align: center;
    line-height: 200px;
    width: auto !important;
}

.el-main {
    background-color: #e9eef3;
    color: #333;
    text-align: center;
    line-height: 160px;
}

.el-container {
    height: 100%;
}

.el-container:nth-child(5) .el-aside,
.el-container:nth-child(6) .el-aside {
    line-height: 260px;
}

.el-container:nth-child(7) .el-aside {
    line-height: 320px;
}
</style>
